import React from 'react'
import { Form } from 'antd'
// ===================================================================== 按钮集合
export default ({ children, name, label, className, rules, mt, ml, mr, mb, width, style}) => {
	let _width = width ? width :'auto'
	return (
		<Form.Item
			name	= { name }
			label	= { label } 
			rules	= { rules }
			style	= {{ width:_width, marginBottom:mb || 0, marginTop: mt, marginLeft:ml, marginRight:mr,...style }}
			className = {className}
		>
			{ children }
		</Form.Item>
	)
}